package com.demo.dao;

import com.demo.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @ClassName UserRepository
 * @Description TODO
 * @Author Windy
 * @Date 2022/9/16 19:40
 * @Version 1.0
 **/
public interface UserRepository extends JpaRepository<User,Integer> {
    User findByName(String username);

    User findByMail(String mail);
}
